﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<Wild2.Models.Pages.Login.Register>" %>
<% 
    String version = "pda"; if (Session[Wild2.Models.Constants.SessionConstants.VERSION] != null) version = Session[Wild2.Models.Constants.SessionConstants.VERSION].ToString();
    if (Model.isLoginShort) Html.RenderPartial("~/Views/Shared/" + version + "/InfoBox.ascx", Resources.Login.LoginShort);
    if (Model.isLoginLong) Html.RenderPartial("~/Views/Shared/" + version + "/InfoBox.ascx", Resources.Login.LoginLong);
    if (Model.isPasswordShort) Html.RenderPartial("~/Views/Shared/" + version + "/InfoBox.ascx", Resources.Login.PasswordShort);
    if (Model.isPasswordLong) Html.RenderPartial("~/Views/Shared/" + version + "/InfoBox.ascx", Resources.Login.PasswordLong);
    if (Model.isUserExist) Html.RenderPartial("~/Views/Shared/" + version + "/InfoBox.ascx", Resources.Login.UserAlreadyRegistered);
    if (Model.isDifferentLanguages) Html.RenderPartial("~/Views/Shared/" + version + "/InfoBox.ascx", Resources.Login.DifferentLanguages);
    if (Model.isBadCharacters) Html.RenderPartial("~/Views/Shared/" + version + "/InfoBox.ascx", Resources.Login.BadCharacters);
    if (Model.isBadCode) Html.RenderPartial("~/Views/Shared/" + version + "/InfoBox.ascx", Resources.Login.BadCode);
%>
<% Html.BeginForm(); %>
<div style="padding: 0em 0.2em 0em 0.2em">
    <div class="menuitem">
        <%= Resources.Login.EnterUserName %><br />
        <%= Html.TextBox("loginbox") %>
    </div>
    <div class="menuitem">
        <%= Resources.Login.EnterPassword %><br />
        <%= Html.Password("passwordbox") %>
    </div>
    <div class="menuitem">
        <%= Resources.Login.EnterCode %><br />
        <% String code = Request.QueryString["code"]; %>
        <%= Html.TextBox("codebox", code)%>
    </div>
    <div class="menuitem">
        <input type="submit" value="<%= Resources.Login.Save %>" />
    </div>
</div>
<% Html.EndForm(); %>